<template>
  <yd-slider autoplay="2500">
    <yd-slider-item v-for="(item, index) in bannerLists" :key="index">
      <router-link :to="{ path: '/news_detail', query: { msg: item.imgUrl } }">
        <img :src="item.imgUrl">
      </router-link>
    </yd-slider-item>
  </yd-slider>
</template>
<script>
export default {
  props: {
    bannerLists: {
      type: Array
    }
  }
}
</script>

